<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title> New Document </title>
	<meta NAME="Generator" CONTENT="EditPlus">
	<meta NAME="Author" CONTENT="">
	<meta NAME="Keywords" CONTENT="">
	<meta NAME="Description" CONTENT="">
</head>

 <body>
	<script type="text/javascript">
		function sayHelloWorld() {
			alert("哇！！！被调用了，好神奇啊。");
		}

		function callFlash() {
			document["mySwf"].callTest();
		}
	</script>

  <div id="$_swf">	
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="217" height="160" id="mySwf" align="middle">
		<param name="allowScriptAccess" value="sameDomain" />
		<param name="allowFullScreen" value="false" />
		<param name="movie" value="sayHelloWorld.swf"/>
		<param name="quality" value="high"/>
		<param name="wmode" value="transparent"/>
		<param name="bgcolor" value="#ffffff"/>
		<embed src="sayHelloWorld.swf" quality="high" bgcolor="#ffffff" wmode="Opaque" width="217" height="160" name="mySwf" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
	</object>	
  </div>  
 <input type="button" value="调用FLASH" onclick="callFlash();" />
 </body>
</html>
